package cn.itcast.service.impl;

import cn.itcast.feign.pojo.Room;
import cn.itcast.mapper.RoomMapper;
import cn.itcast.service.RoomService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class RoomServiceimpl implements RoomService {
    @Autowired
    private RoomMapper roomMapper;

    @Override
    public void save(Room room) {
        roomMapper.save(room);
    }

    @Override
    public void delete(Integer roomId) {
        roomMapper.delete(roomId);
    }

    @Override
    public void update(Room room) {
        roomMapper.update(room);
    }

    @Override
    public Room select(Long roomId) {
        Room room=roomMapper.select(roomId);
        return room;
    }
}

